<?php

	include 'constants.php';
	
?>

<html>
  <head>
  	<title></title>
  </head>
  <?php if ($user): ?>
  <script type="text/javascript">
		if(screen.width<1366)
		{
			document.write('<body style="background-image:url(\'images/home1024.jpg\');">');
			document.write('<input onclick="window.location.href = \'create_event.php\'" type="button" style="cursor: pointer; background: none; border: none; position: fixed; top: 170px; left:20px; width:100px; padding-top: 5px; padding-bottom:5px" value="    ">');
		}
		else
		{
			document.write('<body style="background-image:url(\'images/home1366.jpg\');">');
			document.write('<input onclick="window.location.href = \'create_event.php\'" type="button" style="cursor: pointer; background: none; border: none; position: fixed; top: 170px; left:100px; width:100px; padding-top: 5px; padding-bottom:5px" value="    ">');
		}
	</script>
  
  <input onclick="window.location.href = 'create_event.php'" type="button" style="cursor: pointer; background: none; border: none; position: fixed; top: 170px; left:100px; width:50px; padding-top: 5px; padding-bottom:5px" value="    ">
    <?php else: ?>
      <div>
        Login using FB:
        <a href="<?php echo $loginUrl; ?>">Login with Facebook</a>
      </div>
    <?php endif ?>
    
  </body>
</html>